﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ElectronicJournal.Account.AuthorAccount
{
    public partial class MyAccount : System.Web.UI.Page
    {           
        
        
        
        DataTable ArticleTable = new DataTable();
        //private MembershipUser _membershipUser;


        protected void Page_Load(object sender, EventArgs e)
        {
            GridViewArticle.DataSource = ArticleTable;
            ArticleTable.Columns.Add("NameArticle", typeof(string));
            ArticleTable.Columns.Add("NameJournal", typeof(string));
            //ArticleTable.Columns.Add("NameArticle", typeof(string));
            //ArticleTable.Columns.Add("NameArticle", typeof(string));
            
            GridViewArticle.DataBind();
        }

        protected void ArticleTable_Load(object sender, EventArgs e)
        {
           // _membershipUser = как передавать идентификатор Пользователя???7
            EJournalRepository.Instance.GetAllPublicationsForAuthor(Guid.Parse(Membership.GetUser().ProviderUserKey.ToString()));
            ArticleTable.Rows.Add();

            GridViewArticle.DataBind();

        }
    }
}